//package org.example.rubbish.controller;
//
//
//import org.example.rubbish.entity.InventoryIn;
//import org.example.rubbish.entity.InventoryOut;
//import org.example.rubbish.service.InventoryService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.Date;
//import java.util.List;
//
//@RestController
//@RequestMapping("/api/inventory")
//public class InventoryController {
//    @Autowired
//    private InventoryService inventoryService;
//
//    @PostMapping("/in")
//    public InventoryIn createInventoryIn(@RequestBody InventoryIn inventoryIn) {
//        return inventoryService.createInventoryIn(inventoryIn);
//    }
//
//    @PostMapping("/out")
//    public InventoryOut createInventoryOut(@RequestBody InventoryOut inventoryOut) {
//        return inventoryService.createInventoryOut(inventoryOut);
//    }
//
//    @GetMapping("/in/{id}")
//    public InventoryIn getInventoryInById(@PathVariable Long id) {
//        return inventoryService.getInventoryInById(id);
//    }
//
//    @GetMapping("/out/{id}")
//    public InventoryOut getInventoryOutById(@PathVariable Long id) {
//        return inventoryService.getInventoryOutById(id);
//    }
//
//    @GetMapping("/in/station/{stationId}")
//    public List<InventoryIn> getInventoryInByStationId(@PathVariable Long stationId) {
//        return inventoryService.getInventoryInByStationId(stationId);
//    }
//
//    @GetMapping("/in/user/{userId}")
//    public List<InventoryIn> getInventoryInByUserId(@PathVariable Long userId) {
//        return inventoryService.getInventoryInByUserId(userId);
//    }
//
//    @GetMapping("/in/time")
//    public List<InventoryIn> getInventoryInByTimeRange(@RequestParam Date startTime, @RequestParam Date endTime) {
//        return inventoryService.getInventoryInByTimeRange(startTime, endTime);
//    }
//
//    @GetMapping("/out/station/{stationId}")
//    public List<InventoryOut> getInventoryOutByStationId(@PathVariable Long stationId) {
//        return inventoryService.getInventoryOutByStationId(stationId);
//    }
//
//    @GetMapping("/out/time")
//    public List<InventoryOut> getInventoryOutByTimeRange(@RequestParam Date startTime, @RequestParam Date endTime) {
//        return inventoryService.getInventoryOutByTimeRange(startTime, endTime);
//    }
//}
